-- GENERATED SPELL FOR [Felmusk Felsworn] --


function spell0_3762(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(6205,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3762', 631, 1)
end

function spell1_3762(pUnit, Event) --@Overwhelming Stench,n/a--
pUnit:FullCastSpellOnTarget(6942,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3762', 6000, 1)
end

function Sorts_3762(pUnit, Event)
local choix_sorts_3762 = math.random(0, 1)
if choix_sorts_3762 == 0 then
pUnit:RegisterEvent('spell0_3762', 1, 1)
end
if choix_sorts_3762 == 1 then
pUnit:RegisterEvent('spell1_3762', 1, 1)
end
end

function mob3762_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3762', math.random(1500, 3000), 1)
end

function mob3762_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3762_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3762_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3762, 1, 'mob3762_Action')
RegisterUnitEvent(3762, 2, 'mob3762_Leave')
RegisterUnitEvent(3762, 3, 'mob3762_Kill')
RegisterUnitEvent(3762, 4, 'mob3762_Die')
